<template>
	<view v-if="visible" class="container" :class="{ fullscreen: fullscreen }">
		<image src="/static/empty.png" class="img" />
		<view class="title">{{title || '无数据'}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			visible: {
				type: Boolean,
				default: false
			},
			title: {
				type: String,
				default: ''
			},
			fullscreen: {
				type: Boolean,
				default: false
			}
		}
	}
</script>

<style scoped>
	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.container.fullscreen {
		height: calc(100vh - 400rpx);
		justify-content: center;
	}

	.container .img {
		width: 200rpx;
		height: 228rpx;
	}

	.container .title {
		color: #8E8E8E;
	}
</style>
